package com.tzy.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author 刘舒
 * @since 2022-03-24
 */
public class Orders implements Serializable {
    private User user;
    private Dishes dishes;
    private Shop shop;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Dishes getDishes() {
        return dishes;
    }

    public void setDishes(Dishes dishes) {
        this.dishes = dishes;
    }

    public Shop getShop() {
        return shop;
    }

    public void setShop(Shop shop) {
        this.shop = shop;
    }

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 用户编号
     */
    private Integer userId;

    /**
     * 菜品编号
     */
    private Integer dishesId;

    /**
     * 店铺编号
     */
    private Integer shopId;

    /**
     * 菜品评价编号
     */
    private Integer evaluationId;

    /**
     * 订单数量
     */
    private Integer number;

    /**
     * 付款时间
     */
    private LocalDateTime paymentTime;

    /**
     * 下单时间
     */
    private LocalDateTime orderTime;

    /**
     * 订单描述
     */
    private String describes;

    /**
     * 红包优惠编号 (0:未使用优惠)
     */
    private Integer assetsId;

    /**
     * 订单总价格
     */
    private BigDecimal orderPrice;

    /**
     * 支付方式
     */
    private String payType;

    /**
     * 餐具数量
     */
    private String tableware;

    /**
     * 订单状态;0表示已评价,1表示待评价,2表示退款
     */
    private Integer status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public Integer getDishesId() {
        return dishesId;
    }

    public void setDishesId(Integer dishesId) {
        this.dishesId = dishesId;
    }
    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }
    public Integer getEvaluationId() {
        return evaluationId;
    }

    public void setEvaluationId(Integer evaluationId) {
        this.evaluationId = evaluationId;
    }
    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }
    public LocalDateTime getPaymentTime() {
        return paymentTime;
    }

    public void setPaymentTime(LocalDateTime paymentTime) {
        this.paymentTime = paymentTime;
    }
    public LocalDateTime getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(LocalDateTime orderTime) {
        this.orderTime = orderTime;
    }
    public String getDescribes() {
        return describes;
    }

    public void setDescribes(String describes) {
        this.describes = describes;
    }
    public Integer getAssetsId() {
        return assetsId;
    }

    public void setAssetsId(Integer assetsId) {
        this.assetsId = assetsId;
    }
    public BigDecimal getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(BigDecimal orderPrice) {
        this.orderPrice = orderPrice;
    }
    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }
    public String getTableware() {
        return tableware;
    }

    public void setTableware(String tableware) {
        this.tableware = tableware;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Orders{" +
            "id=" + id +
            ", orderNo=" + orderNo +
            ", userId=" + userId +
            ", dishesId=" + dishesId +
            ", shopId=" + shopId +
            ", evaluationId=" + evaluationId +
            ", number=" + number +
            ", paymentTime=" + paymentTime +
            ", orderTime=" + orderTime +
            ", describes=" + describes +
            ", assetsId=" + assetsId +
            ", orderPrice=" + orderPrice +
            ", payType=" + payType +
            ", tableware=" + tableware +
            ", status=" + status +
        "}";
    }
}
